﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SimhoppKjellsFavoriterVT13
{
    public class ContestInformation
    {
        public static DateTime date;
        public static DateTime deadLine;
        public static String name;
        public ContestInformation()
        {
        }
        /*
        private void M_Load(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            
        }

        private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
        {

        }

        private void ContestOK_Click(object sender, EventArgs e)
        {
            if (ContestDate.Value.Date != null && DeadlineDate.Value.Date != null && ContestName != null)
            {
                if (DeadlineDate.Value.Date <= ContestDate.Value.Date)
                {
                    date = ContestDate.Value.Date;
                    deadLine = DeadlineDate.Value.Date;
                    name = ContestName.ToString();
                    Program.contestFrame = new Contest(ContestInformation.name, ContestInformation.date, ContestInformation.deadLine);
                    Program.contestFrame.Location = Program.contestInfoFrame.Location;
                    this.Hide();
                    Program.contestFrame.Show();
                    
                }
                else
                { 
                    //If the deadline is after the contestDate 
                    //give error message and dont do shit bro

                }

            }
            else
            {
                //If something is null give 
                //them an informative error message

            }



                
            
           
        }*/
    }
}
